package com.xxjqr.rbac.controller;

import com.xxjqr.rbac.entity.vo.DictVo;
import com.xxjqr.rbac.service.TbDictService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;

@RestController
@RequestMapping("dict")
@AllArgsConstructor
public class TbDictController {

    private final TbDictService dictService;
    @GetMapping("getDictMap")
    public HashMap<String, List<DictVo>> getAllDictMap() {
        return dictService.getAllDictMap();
    }
}
